#ifndef SETTINGS_HANDLER_H
#define SETTINGS_HANDLER_H

#include <iobserver.h>

namespace swp
{

class SettingsHandler : public core::IObserver
{
public:
    static SettingsHandler* getInstance();
    static void destroy();

    // IObserver
    void notify(core::IObservableObject *source, const QString &property,
        const QVariant &value);

private:
    SettingsHandler();
    ~SettingsHandler();

    void handleSnapToGrid(bool value) const;
};

} // namespace swp

#endif
